import request from "@/utils/request";

export function login(adminname, password) {
  // 调用 request 发请求
  return request({
    url: "/admin/admin/login",
    method: "POST",
    data: {
      adminname: adminname,
      password: password,
    },
  });
}

export function getUser() {
  return request({
    url: 'admin/admin/detail',
    method: 'GET'
  })
}
